home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / win / hooks.zip / DLLSTUFF.C < prev    next >
C/C++ Source or Header  |  1993-03-18  |  2KB  |  46 lines

  1. //---------------------------------------------------------------------------
  2. //  DLLSTUFF - Windows DLL support functions
  3. //
  4. //  This File contains the source code for the standard DLL functions
  5. //
  6. //  Author:    Kyle Marsh
  7. //              Windows Developer Technology Group
  8. //              Microsoft Corp.
  9. //
  10. //---------------------------------------------------------------------------
  11.  
  12.  
  13. #include "windows.h"
  14.  
  15. //---------------------------------------------------------------------------
  16. // Function declarations
  17. //---------------------------------------------------------------------------
  18.  
  19. int   FAR PASCAL LibMain(HANDLE hModule, WORD wDataSeg, WORD cbHeapSize, LPSTR lpszCmdLine);
  20. int   FAR PASCAL WEP (int bSystemExit);
  21.  
  22. //---------------------------------------------------------------------------
  23. // Global Variables...
  24. //---------------------------------------------------------------------------
  25.  
  26. HANDLE    hInstance;        // Global instance handle for  DLL
  27.  
  28. //---------------------------------------------------------------------------
  29. // LibMain
  30. //---------------------------------------------------------------------------
  31. int FAR PASCAL LibMain(HANDLE hModule, WORD wDataSeg, WORD cbHeapSize, LPSTR lpszCmdLine)
  32. {
  33.     hInstance = hModule;
  34.     return 1;
  35. }
  36.  
  37. #pragma alloc_text(FIXEDSEG, WEP)
  38.  
  39. //---------------------------------------------------------------------------
  40. // WEP
  41. //---------------------------------------------------------------------------
  42. int FAR PASCAL WEP (int bSystemExit)
  43. {
  44.     return(1);
  45. }
  46.